package org.neuedu.ssmp.crm.controller;

import org.neuedu.ssmp.crm.entity.Ls;
import org.neuedu.ssmp.crm.service.ILsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/c")
public class LsController {
    @Autowired
    private ILsService iLsService;
    @RequestMapping("/a")
    public List<Ls> user(){
        return iLsService.user();
    }
    @RequestMapping("/b")
    public List<Ls> sou(String name,String username){
        return iLsService.userl(name,username);
    }
}
